<template>
<div class="home">
  <div class="weekend">
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item" v-for="item in weekendList" :key="item.id">
        <div class="item-img-wrrap">
          <img class="item-img" :src="item.imgUrl" alt="" />
        </div>
        <div class="item-info">
          <p class="item-title">{{ item.title }}</p>
          <p class="item-desc">{{ item.desc }}</p>
        </div>
      </li>
    </ul>
  </div>
  </div>
</template>

<script>
export default {
  name: 'homeWeekend',
  data () {
    return {
      recomList: [
        {
          id: '001',
          imgUrl:
            'http://img1.qunarzz.com/sight/source/1505/d5/abe8a48a6ef8bf.jpg_r_640x214_7c41cc81.jpg',
          desc: '感受荷兰郁金香的异域风情',
          title: '东西湖郁金香主题公园'
        },
        {
          id: '002',
          imgUrl:
            'http://img1.qunarzz.com/sight/source/1505/d5/abe8a48a6ef8bf.jpg_r_640x214_7c41cc81.jpg',
          desc: '感受荷兰郁金香的异域风情',
          title: '东西湖郁金香主题公园'
        },
        {
          id: '003',
          imgUrl:
            'http://img1.qunarzz.com/sight/source/1505/d5/abe8a48a6ef8bf.jpg_r_640x214_7c41cc81.jpg',
          desc: '感受荷兰郁金香的异域风情',
          title: '东西湖郁金香主题公园'
        },
        {
          id: '004',
          imgUrl:
            'http://img1.qunarzz.com/sight/source/1505/d5/abe8a48a6ef8bf.jpg_r_640x214_7c41cc81.jpg',
          desc: '感受荷兰郁金香的异域风情',
          title: '东西湖郁金香主题公园'
        },
        {
          id: '005',
          imgUrl:
            'http://img1.qunarzz.com/sight/source/1505/d5/abe8a48a6ef8bf.jpg_r_640x214_7c41cc81.jpg',
          desc: '感受荷兰郁金香的异域风情',
          title: '东西湖郁金香主题公园'
        }
      ]
    }
  },
  props: {
    weekendList: Array
  }
}
</script>

<style lang="scss">
@import "~@/assets/css/vertauls.scss";
.weekend {
    padding: 0 10px;
  .title {
    line-height: 50px;
    background-color: #eee;
    text-indent: 15px;
    margin-top: 10px;
    font-size: 24px;
  }
  ul {
    .item {
      .item-img-wrrap {
        overflow: hidden;
        height: 0;
        padding-bottom: 37%;
        .item-img {
          width: 100%;
        }
      }
      .item-info {
        padding: 20px 5px;
        .item-title {
          line-height: 50px;
          font-size: 30px;
          @include ellip;
        }
        .item-desc {
          line-height: 40px;
          font-size: 24px;
          color: #ccc;
          @include ellip;
        }
      }
    }
  }
}
</style>
